<% get_admin_navbar('restaurant') %>
<div class="page">
  <div class="page-container">
    <div class="container">
      <div class="row">
        <div class="span12 header">
          <h4><%= @restaurant.name %>
            <%= link_to "返回餐厅管理","/admin/restaurants",class:"btn btn-default pull-right" %>
          </h4>
          <!--breadcrumb-->
        </div>
      </div>


       <div class="row">
        <div class="span12">
          <div class="well" style="font-size: 16px">

            <h4 class="header">餐厅具体信息
             <%= link_to "打印机管理","/admin/restaurants/#{@restaurant.id}/printers",class:"btn btn-info pull-right" %>
            </h4>

            <div class="row">
              <div class="span12">
               <p>名称: <span style="color: #27AE60"><%= @restaurant.login %></span></p>
                <p>名称: <span style="color: #27AE60"><%= @restaurant.name %></span></p>
                <p>联系方式: <span style="color: #3498DB"><%= @restaurant.phone || '暂未设置' %></span></p>
                <p>地址: <span style="color: #3498DB"><%= @restaurant.address || '暂未设置' %></span></p>
                <p>打印机数量: <span style="color: #27AE60"><%= @restaurant.printers.count %></span></p>
              </div>
            </div>
          </div>
        </div>
    </div>
  </div>
</div>      